// 错误码统一配置
module.exports = {
    userFormatError: {
        code: '10001',
        message: '用户名或密码不能为空！',
    },
    userNameAlreadyUsed: {
        code: '10002',
        message: '用户名已存在！'
    },
    registerError: {
        code: '10003',
        message: '注册异常！'
    },
    userNameNotFound: {
        code: '10004',
        message: '用户未注册！'
    },
    loginError: {
        code: '10005',
        message: '登录异常！'
    },
    passwordWrong: {
        code: '10006',
        message: '密码错误！'
    },
    updateError: {
        code: '10007',
        message: '用户信息修改异常！'
    },
    tokenExpiredError: {
        code: '10101',
        message: 'token已过期！'
    },
    jsonWebTokenError: {
        code: '10102',
        message: 'token无效！'
    },
    /**
     * 通用异常
     */
    databaseError: {
        code: '4',
        message: '数据库操作异常！'
    }
};